<script setup>

import router from "../router/index.js";

const toRegister = ()=>{
  //找路由切换组件
  router.push('/register')
}

const login=()=>{
  router.push('/home/index')
}
</script>

<template>
  <h3>登录页面</h3>
  <button @click="login">登录</button>
  <br>
  <button @click="toRegister">马上注册</button>
</template>

<style scoped>

</style>